Examples of Processing Emails Received in XML Format

Example 1: Importing a Single Email

Example 2: Importing Incidents and Service Requests into the Same Inbox

Example 1: Importing a Single Email

This example includes the following:

An example of an email sent by a customer. See below:

<INCIDENT>

<DESCRIPTION>xml email processing</DESCRIPTION>

<SERVICE>Desktop Service</SERVICE>

<CATEGORY>Performance Issue</CATEGORY>

<OWNER>Quality Assurance</OWNER>

<OWNERTEAM>IT</OWNERTEAM>

<URGENCY>Medium</URGENCY>

<IMPACT>Medium</IMPACT>

<SOURCE>Email</SOURCE>

<PROFILELINK>Kelly Yao</PROFILELINK>

</INCIDENT>

An example of an XML file that is generated from the original email, but is not in the hierarchical XML format. Go to Ex1-Import-Generated-Email.xml to see the file.

An example of an XSLT file to apply to it. Go to Ex1-Import-Script.xslt to see the file.

An example of the final XML file after applying the XSLT file to it. Go to Ex1-Import-Final-Email.xml to see an example of the final XML file after applying the XSLT file to it.

Example 2: Importing Incidents and Service Requests into the Same Inbox

This example shows how to import incidents and service requests into the same inbox and contains the following:

An example of an email sent by a customer to import an incident and an example of an email sent by a customer to import a service request.

Example of an email sent by a customer to import an incident:

<INCIDENT>

<DESCRIPTION>Test XML </DESCRIPTION>

<SERVICE>Desktop Service</SERVICE>

<CATEGORY>Performance Issue</CATEGORY>

<OWNERTEAM>Operations</OWNERTEAM>

<OWNER>Administrator Admin</OWNER>

<URGENCY>Medium</URGENCY>

<IMPACT>Medium</IMPACT>

<SOURCE>Email</SOURCE>

<PROFILELINK>Administrator Admin</PROFILELINK>

</INCIDENT>

Example of an email sent by a customer to import a service request:

Department$IT

Requester$Alan Taylor

[email protected]

An example of an XML file that is generated from the original email, but is not in the hierarchical XML format. Go to Ex2-Import-Generated-Email.xml to see an example of a generated XML email file to import an incident and go to Ex2-Import-Generated-Email2.xml to see an example of a generated XML email file to import a service request.

An example of an XSLT file to apply to it.  Go to Ex2-Import-Script3.xslt to see an example of an XSLT file to import both an incident and a service request, go to Ex2-Import-Script.xslt to see an example of an XSL file to import an incident, or go to Ex2-Import-Script2.xsl to see an example of an XSL file to import a service request.

An example of the final XML file after applying the XSLT file to it, for importing an incident (go to Ex2-Import-Final-Email.xml to see an example of the final XML file after applying the XSL and XSLT files to it) or for importing a service request ( go to Ex2-Import-Final-Email2.xml to see an example of the final XML file after applying the XSL and XSLT files to it).